package com.briup.ch06.ploy;

import com.sun.javafx.scene.control.skin.ButtonBarSkin;

public class Test {
    public static void main(String[] args) {
        basketball b=new basketball();
        b.play();
        Football f=new Football();
        f.play();
        Ball b2=new basketball();
        //b2.star();; 因为ball没有star，编译看左边，运行看右边
        Game g1=new Game();
        Football f1=new Football();
        g1.start(f1);
        basketball b1=new basketball();
        g1.start(b1);
        PingPang p=new PingPang();
        g1.start(p);
    }
}
